using System;

namespace SimpleApp.Models;

public class Product
{
    public string Name { get; set; } = string.Empty;
    public decimal? Price { get; set; }
    // public static Product[] GetProducts() {
    //     return new Product[] {
    //         new Product { Name = "Apple", Price = 1.99m },
    //         new Product { Name = "Banana", Price = 2.99m },
    //         new Product { Name = "Orange", Price = 3.99m },
    //         new Product { Name = "Pineapple", Price = 4.99m },
    //         new Product { Name = "Strawberry", Price = 5.99m },
    //     };
    // }
}

public class ProductDataSource : IDataSource
{
    public IEnumerable<Product> Products =>
        new Product[] {
            new() {Name = "Kayak", Price = 275M},
            new() {Name = "Lifejacket", Price = 48.95M},
        };
}
